[INFO] cloning repository https://github.com/vedranvinko/oscar
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vedranvinko/oscar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvedranvinko%2Foscar", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvedranvinko%2Foscar'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 580f1c03d30f09afd9a3056db7eae2b13b492d46
[INFO] checking vedranvinko/oscar against master#cfbc6d4cf1acbac5c025acf8ed68929caa551df3 for pr-75494-beta
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvedranvinko%2Foscar" "/workspace/builds/worker-0/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/vedranvinko/oscar on toolchain cfbc6d4cf1acbac5c025acf8ed68929caa551df3
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cfbc6d4cf1acbac5c025acf8ed68929caa551df3" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/vedranvinko/oscar
[INFO] finished tweaking git repo https://github.com/vedranvinko/oscar
[INFO] tweaked toml for git repo https://github.com/vedranvinko/oscar written to /workspace/builds/worker-0/source/Cargo.toml
[INFO] crate git repo https://github.com/vedranvinko/oscar already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cfbc6d4cf1acbac5c025acf8ed68929caa551df3" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+cfbc6d4cf1acbac5c025acf8ed68929caa551df3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 29b11653d19d3d0eaff5d05a1c4d58bcb01d5af0d21eca767acfe07b0ca33748
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "29b11653d19d3d0eaff5d05a1c4d58bcb01d5af0d21eca767acfe07b0ca33748", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "29b11653d19d3d0eaff5d05a1c4d58bcb01d5af0d21eca767acfe07b0ca33748", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "29b11653d19d3d0eaff5d05a1c4d58bcb01d5af0d21eca767acfe07b0ca33748", kill_on_drop: false }`
[INFO] [stdout] 29b11653d19d3d0eaff5d05a1c4d58bcb01d5af0d21eca767acfe07b0ca33748
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+cfbc6d4cf1acbac5c025acf8ed68929caa551df3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] c4844f68e2f8182f469292ade906db84987879b7ddd614bd328c58db48417c17
[INFO] running `Command { std: "docker" "start" "-a" "c4844f68e2f8182f469292ade906db84987879b7ddd614bd328c58db48417c17", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.18
[INFO] [stderr]    Compiling unicode-xid v0.2.0
[INFO] [stderr]    Compiling syn v1.0.31
[INFO] [stderr]     Checking gimli v0.21.0
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]     Checking adler32 v1.1.0
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]     Checking object v0.20.0
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]     Checking rustc-demangle v0.1.16
[INFO] [stderr]     Checking unicode-width v0.1.7
[INFO] [stderr]     Checking xml-rs v0.8.3
[INFO] [stderr]     Checking vec_map v0.8.2
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking miniz_oxide v0.3.7
[INFO] [stderr]     Checking clap v2.33.1
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]     Checking addr2line v0.12.1
[INFO] [stderr]     Checking backtrace v0.3.49
[INFO] [stderr]     Checking error-chain v0.10.0
[INFO] [stderr]    Compiling serde_derive v1.0.112
[INFO] [stderr]     Checking serde v1.0.112
[INFO] [stderr]     Checking serde-xml-rs v0.3.1
[INFO] [stderr]     Checking oscar v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `serde_xml_rs::from_reader`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde_xml_rs::from_reader;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_xml_rs::from_reader`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde_xml_rs::from_reader;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`)
[INFO] [stdout]   --> src/main.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | / fn read_file(f: String) -> String {
[INFO] [stdout] 15 | |     let mut file = File::open(f)?;
[INFO] [stdout]    | |                    ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `std::string::String`
[INFO] [stdout] 16 | |     let mut content = String::new();
[INFO] [stdout] 17 | |     file.read_to_string(&mut content)?;
[INFO] [stdout] 18 | |
[INFO] [stdout] 19 | |     content
[INFO] [stdout] 20 | | }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `std::ops::Try` is not implemented for `std::string::String`
[INFO] [stdout]    = note: required by `std::ops::Try::from_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`)
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | / fn read_file(f: String) -> String {
[INFO] [stdout] 15 | |     let mut file = File::open(f)?;
[INFO] [stdout] 16 | |     let mut content = String::new();
[INFO] [stdout] 17 | |     file.read_to_string(&mut content)?;
[INFO] [stdout]    | |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `std::string::String`
[INFO] [stdout] 18 | |
[INFO] [stdout] 19 | |     content
[INFO] [stdout] 20 | | }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `std::ops::Try` is not implemented for `std::string::String`
[INFO] [stdout]    = note: required by `std::ops::Try::from_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `oscar`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`)
[INFO] [stdout]   --> src/main.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | / fn read_file(f: String) -> String {
[INFO] [stdout] 15 | |     let mut file = File::open(f)?;
[INFO] [stdout]    | |                    ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `std::string::String`
[INFO] [stdout] 16 | |     let mut content = String::new();
[INFO] [stdout] 17 | |     file.read_to_string(&mut content)?;
[INFO] [stdout] 18 | |
[INFO] [stdout] 19 | |     content
[INFO] [stdout] 20 | | }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `std::ops::Try` is not implemented for `std::string::String`
[INFO] [stdout]    = note: required by `std::ops::Try::from_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`)
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | / fn read_file(f: String) -> String {
[INFO] [stdout] 15 | |     let mut file = File::open(f)?;
[INFO] [stdout] 16 | |     let mut content = String::new();
[INFO] [stdout] 17 | |     file.read_to_string(&mut content)?;
[INFO] [stdout]    | |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `std::string::String`
[INFO] [stdout] 18 | |
[INFO] [stdout] 19 | |     content
[INFO] [stdout] 20 | | }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `std::ops::Try` is not implemented for `std::string::String`
[INFO] [stdout]    = note: required by `std::ops::Try::from_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "c4844f68e2f8182f469292ade906db84987879b7ddd614bd328c58db48417c17", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c4844f68e2f8182f469292ade906db84987879b7ddd614bd328c58db48417c17", kill_on_drop: false }`
[INFO] [stdout] c4844f68e2f8182f469292ade906db84987879b7ddd614bd328c58db48417c17
